// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import Vuex from 'vuex'

import Element from 'element-ui'
import 'element-ui/lib/theme-default/index.css'

import App from './App'
import store from './store/index'
import VueRouter from 'vue-router'

import List from './components/List'
import Node from './components/Node'


Vue.use(VueRouter)
Vue.use(Element)



var router = new VueRouter({
  routes: [
    { path: '/good', component: List },
    { path: '/share', component: List },
    { path: '/node/:id', component: Node },
    { path: '*', component: List }
  ]
});

new Vue({
  el: '#app',
  router: router,
  store,
  render: h => h(App)
})